#ifndef DOWNLOADUI_H
#define DOWNLOADUI_H

#include <QWidget>
#include "downloadmanager_global.h"
#include <mynetworkaccessmanager.h>

namespace Ui {
class DownloadUI;
}

class DownloadManager_EXPORT DownloadUI : public QWidget
{
    Q_OBJECT
    
public:
    explicit DownloadUI(QWidget *parent = 0);
    ~DownloadUI();
    void downloadFile(const QUrl& url);
    void setAccessManager(myNetworkAccessManager*);

    void insertWidget(QWidget*);
    
private:
    Ui::DownloadUI *ui;
    myNetworkAccessManager* m_accessManager;
};

#endif // DOWNLOADUI_H
